<?php

namespace IMT\EventBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * IMT\EventBundle\Entity\Comment
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Comment
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @ORM\Column(type="text")
     */
    protected $content;
    
    /**
     * @var date $date
     *
     * @ORM\Column(name="date", type="datetime")
     */
    protected $date;
    
    /**
     * @ORM\ManyToOne(targetEntity="Event", inversedBy="comments")
     */
    private $event;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set content
     *
     * @param text $content
     */
    public function setContent($content)
    {
        $this->content = $content;
    }

    /**
     * Get content
     *
     * @return text 
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set date
     *
     * @param date $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return date 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set event
     *
     * @param IMT\EventBundle\Entity\Event $event
     */
    public function setEvent(\IMT\EventBundle\Entity\Event $event)
    {
        $this->event = $event;
    }

    /**
     * Get event
     *
     * @return IMT\EventBundle\Entity\Event 
     */
    public function getEvent()
    {
        return $this->event;
    }
}